package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@Table(name="T_DATA_JOB_GATHER_INFO")
@DiscriminatorValue("GATHER")
public class GatherEntity extends JobInfoEntity{

	@Id
	@Column(name = "ID",length = 11)
	@TableId(value = "Id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
	@ApiModelProperty(value="id")
	private Long id;

	@Column(name="apply_info_id", length=50)
	private Integer applyInfoId;

	@Column(name="check_info_id", length=50)
	private Integer checkInfoId;

	@Column(name="gather_id", length=50)
	private Long gatherId;

	@Column(name="decode_id", length=50)
	private Long decodeId;

}
